const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    proxy: {
      '/data': {
        target: 'https://apis.netstart.cn',
        pathRewrite: {
          '^/data': ''
        }
      },
      '/v2': {
        target: 'https://api.douguo.net',
        pathRewrite: {
          '^/v2': ''
        }
      },
      '/v3': {
        target: 'https://passport.douguo.com',
        pathRewrite: {
          '^/v3': ''
        }
      },
    }
  }, 
})
